<div class="centreForm">
    <h1>Add Phone</h1>
    <c:if test="${!empty addPhoneFailureFlag}">
        <p class="message errorMessage">Unable to add phone to the database.</p>
    </c:if>
    <c:if test="${!empty phoneName}">
        <p class="message confirmationMessage">${phoneName} has been added to the database.</p>
    </c:if>
    <form method="post" action="<c:url value='/catalogue/phones/new'/>">
        <fieldset>
            <legend>Phone Details</legend>
            <label for="manufacturer">Manufacturer:</label><input type="text" name="manufacturer" id="manufacturer" /><br />
            <script type="text/javascript">$("input#manufacturer").focus();</script>
            <label for="make">Make:</label><input type="text" name="make" /><br />
            <label for="price">Price:</label><input type="text" name="price" /><br />
            <label for="weight">Weight:</label><input type="text" name="weight" /><br />
            <input type="submit" class="submit" value="Add Phone" />
        </fieldset>
    </form>
</div>


